export type CommitTypesEmojiType = {
  emoji: string;
  zh: string;
};

export const CommitTypesEmojiValue = {
  type: '🆎',
  feat: '🌟',
  style: '🎨',
  chore: '💄',
  doc: '📖',
  fix: '🐞',
  test: '⛑',
  refactor: '🐝',
  website: '🌍',
  revert: '⏪',
  clean: '💊',
  perf: '📈',
  ci: '💢',
  build: '🚚',
  release: '🔥',
  factory: '🏭',
};

export type CommitTypesEmojiValueType = keyof typeof CommitTypesEmojiValue;

export const CommitTypesEmoji: Record<
  CommitTypesEmojiValueType,
  CommitTypesEmojiType
> = {
  feat: {
    emoji: CommitTypesEmojiValue['feat'],
    zh: '新特性',
  },
  type: {
    emoji: CommitTypesEmojiValue['type'],
    zh: '类型',
  },
  style: {
    emoji: CommitTypesEmojiValue['style'],
    zh: '样式',
  },
  chore: {
    emoji: CommitTypesEmojiValue['chore'],
    zh: '核心',
  },
  doc: {
    emoji: CommitTypesEmojiValue['doc'],
    zh: '文档',
  },
  fix: {
    emoji: CommitTypesEmojiValue['fix'],
    zh: '修复',
  },
  test: {
    emoji: CommitTypesEmojiValue['test'],
    zh: '测试',
  },
  refactor: {
    emoji: CommitTypesEmojiValue['refactor'],
    zh: '重构',
  },
  website: {
    emoji: CommitTypesEmojiValue['website'],
    zh: '网站',
  },
  revert: {
    emoji: CommitTypesEmojiValue['revert'],
    zh: '回滚',
  },
  clean: {
    emoji: CommitTypesEmojiValue['clean'],
    zh: '清理',
  },
  perf: {
    emoji: CommitTypesEmojiValue['perf'],
    zh: '性能优化',
  },
  ci: {
    emoji: CommitTypesEmojiValue['ci'],
    zh: '持续集成',
  },
  build: {
    emoji: CommitTypesEmojiValue['build'],
    zh: '构建',
  },
  release: {
    emoji: CommitTypesEmojiValue['release'],
    zh: '发布',
  },
  factory: {
    emoji: CommitTypesEmojiValue['factory'],
    zh: '工程',
  },
};
